'''
Created on 19.12.2012

@author: felix
'''
from game.player.alpha_beta_player.alpha_beta_framework.heuristic.Heuristic import Heuristic
import random

class RandomHeuristic(Heuristic):
    '''
    classdocs
    '''
    def __init__(self, weighting, minRand, maxRand):
        Heuristic.__init__(self, weighting)
        self.minRand = minRand
        self.maxRand = maxRand

    def heuristic(self, field, action, color, nextColor, depth):
        random.seed(random.uniform(0,100000000))
        return random.uniform(self.minRand, self.maxRand)
        